package cn.zs.supply;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.PropertySource;
import org.springframework.scheduling.annotation.EnableAsync;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableDiscoveryClient
@ComponentScan(basePackages = {"cn.zs.supply","cn.zs.supply.web.filter"})
@PropertySource("classpath:application.${APP_ENV:DEV}.properties")
@EnableCaching
@EnableAsync
@EnableSwagger2
@SpringBootApplication
@EnableAspectJAutoProxy(proxyTargetClass=true)
public class WebBackApplication
{
    public static void main( String[] args )
    {

        SpringApplication.run(WebBackApplication.class, args);
        //System.out.println( "Hello World!" );
    }
}
